/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  column: [
	  {
      label: '还款订单号',
      prop: 'id'
    },
	  {
      label: '借款订单号',
      prop: 'loanId'
    },
	  {
      label: '还款状态',
      prop: 'repStatus',
      type: 'select',
      dicUrl: '/admin/dict/type/insurance_repayStatus',
    },
	  {
      label: '放款时间',
      prop: 'loanTime'
    },
	  {
      label: '借款方名称',
      prop: 'loanName'
    },
	  {
      label: '用户账号',
      prop: 'accountId'
    },
	  {
      label: '接收还款的账号',
      prop: 'repayReceiverAccount',
    },
	  {
      label: '资金方利率',
      prop: 'capitalRate',
      hide:true,
      addDisplay:false,
    },
	  {
      label: '资金方实际利息(元)',
      prop: 'capitalInterest',
      hide:true,
      addDisplay:false,

    },
	  {
      label: '借款金额(元)',
      prop: 'loanAmount'
    },
	  {
      label: '应还本金总额(元)',
      prop: 'principalPayable'
    },
	  {
      label: '应还利息总额(元)',
      prop: 'interestPayable'
    },
	  {
      label: '当前期数',
      prop: 'currentPeriod'
    },
	  {
      label: '借款模块',
      prop: 'loanModularId',
      hide:true,
      addDisplay:false,
      type: 'select',
      dicUrl: '/insurance/foreign/modelIdDict',
    },
	  {
      label: '还款到期时间',
      prop: 'dueTime',
      type:"datetime",
      valueFormat:"yyyy-MM-dd HH:mm:ss",
    },
	  {
      label: '借款期数',
      prop: 'loanPeriodsNum'
    },
	  {
      label: '罚息金额',
      prop: 'penaltyInterest'
    },
	  {
      label: '创建时间',
      prop: 'createTime',
      type:"datetime",
      valueFormat:"yyyy-MM-dd HH:mm:ss",
    },
	  {
      label: '备注',
      prop: 'remarks',
      hide:true,
      addDisplay:false,
    },
	  {
      label: '删除标记（0.显示  1.隐藏）',
      prop: 'delFlag',
      hide:true,
      addDisplay:false,
    },
  ]
}

export const option = {
  addBtn:false,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  header:false,
  menuAlign: 'center',
  align: 'center',
  delBtn:false,
  editBtn:false,
  refreshBtn:false,
  columnBtn:false,
  menu:false,
  dialogModal:true,
  column: [
    {
      label: '还款订单号',
      prop: 'id',
    },
    {
      label: '还款订单号',
      prop: 'repayId',
      hide:true,
    },
    {
      label: '还款的状态',
      prop: 'repDetailStatus',
      type: 'select',
      // dicUrl: '/admin/dict/type/insurance_repay_status',
      dicUrl: '/admin/dict/type/insurance_repStatus',
    },
    {
      label: '每期还款金额',
      prop: 'repDetailAmount',
    },
    {
      label: '每期实际还款本金',
      prop: 'repDetailPrincipal',
    },
    {
      label: '每期还款利息',
      prop: 'repDetailInterest',
    },
    {
      label: '每期还款时间',
      prop: 'repDetailTime',
    },
    {
      label: '实际还款时间',
      prop: 'repDetailTimeActual',
    },
    {
      label: '每期资金方实际利息',
      prop: 'capitalInterest',
    },
    {
      label: '接收还款账号',
      prop: 'repayReceiverAccount',
    },
    {
      label: '罚息金额',
      prop: 'penaltyInterest',
    },
    {
      label: '逾期天数',
      prop: 'overdueDays',
      hide:true,
    },
    {
      label: '创建时间',
      prop: 'createTime',
    },
    {
      label: ' 备注',
      prop: 'remarks',
      hide:true,
    },
    {
      label: ' 删除标记（0.显示   1.隐藏）',
      prop: 'delFlag',
      hide:true,
    },
  ]
}
